#[derive(Default)]
pub struct Logger {
    debug: bool,
}

impl Logger {
    pub fn set_debug(&mut self, debug: bool) {
        self.debug = debug
    }

    pub fn debug(&self, msg: String) {
        if self.debug {
            println!("    +-debug 🤔 {}", msg);
        }
    }
    pub fn info(&self, msg: String) {
        println!("    --info  🤗 {}", msg);
    }
    pub fn err(&self, msg: String) {
        println!("    x-err   🙄 {}", msg);
    }
    pub fn err_exit(&self, msg: String) -> ! {
        println!("    x-err   🙄 {}", msg);
        println!("

    yuzu exit with error 🙄
        see u next time ~ 🌸
    ");
        panic!("")
    }
    pub fn println(&self, msg: String) {
        println!("{}", msg);
    }
}